/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.pub.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.pub.entity.Myrelease;
import com.thinkgem.jeesite.modules.pub.dao.MyreleaseDao;

/**
 * 我要发布Service
 * @author 开发者
 * @version 2016-11-14
 */
@Service
@Transactional(readOnly = true)
public class MyreleaseService extends CrudService<MyreleaseDao, Myrelease> {

	public Myrelease get(String id) {
		return super.get(id);
	}
	
	public List<Myrelease> findList(Myrelease myrelease) {
		return super.findList(myrelease);
	}
	
	public Page<Myrelease> findPage(Page<Myrelease> page, Myrelease myrelease) {
		return super.findPage(page, myrelease);
	}
	
	@Transactional(readOnly = false)
	public void save(Myrelease myrelease) {
		super.save(myrelease);
	}
	
	@Transactional(readOnly = false)
	public void delete(Myrelease myrelease,Boolean isRe) {
		myrelease.setDelFlag(Boolean.TRUE.equals(isRe) ? myrelease.DEL_FLAG_NORMAL : myrelease.DEL_FLAG_DELETE);
		super.delete(myrelease);
	}
	
}